package com.xyzisme76.dao;
import com.xyzisme76.pojo.*;
import java.util.List;
    /**
     * <Strong>  Id primaryKey
     <hr>
     <Strong>  Name
     <hr>
     <Strong>  Pwd password
    * */
public interface UserDao {
    //select * from  user
    List<User> getUserList();
    //select * from user where ID = *** (sql)
    User getUserById(int id);
    // select * from user where name = #{name}(sql)
    User getUserByName(String name);
    //select * from user where pwd = #{pwd}(sql)
    User getUserByPwd(String pwd);
    //insert into user (id, name ,pwd) value (#{id},#{name},#{pwd})(sql)
    int addUser(User user);

    int delUser(int uid);

    int chgUser(User user);
}
